from custom.handlers.basehandler import BaseRequestHandler, BaseWebSocketHandler
from models.tables import UserModel


class IndexHandler(BaseRequestHandler):
    def get(self, *args, **kwargs):
        self.render('index.html', title='alpha')


class GpHandler(BaseRequestHandler):
    def get(self, *args, **kwargs):
        self.render('gp.html', title='gp')


class GpmHandler(BaseRequestHandler):
    def get(self, *args, **kwargs):
        self.render('gpm.html', title='gp')


class ChatHandler(BaseWebSocketHandler):
    def open(self):
        print('open')
        self.write_message('on open')

    def on_close(self):
        print('close')
